class CreateComments < ActiveRecord::Migration
	def change
		create_table :comments do |t|
			t.text :content, null: false
			t.integer :document_id, null: false
			t.integer :owner_id, null: false
			t.string :created_by, null: false
			t.string :updated_by

			t.timestamps
		end
		
		add_index :comments, :document_id
		add_index :comments, :owner_id
	end
end
